package com.sunmoon.mingshuo

import com.sunmoon.mingshuo.spider.SouduSpider
import junit.framework.Assert
import org.junit.Test

class SouduSpiderUnitTest{
    @Test
    fun getList() {
        val spider = SouduSpider()
        var result = spider.search("武炼巅峰")
        Assert.assertTrue( result.res.size > 0)
    }
    @Test
    fun getChapters()  {
        val spider = SouduSpider()
        var result = spider.getChapters("http://www.sodu.cc/mulu_441.html")
        print(result)
    }

}